#!/bin/bash
# check if either a directory or file exists.
location=$HOME
file_name="sentinel"

if [ -e $location ]; then
    echo "Ok on the $location directory."
    echo "Now checking on the file, $file_name."
    if [ -e $location/$file_name ]; then
        echo "Ok on the filename."
        echo "Updating Current Date..."
        date >> $location/$file_name
    else
       echo "File dose not exists."
       echo "Noting to update"
    fi
else
    echo "The $location directory does not exists."
    echo "Noting to update."
fi
